】
】<%@ page language="java" import="java.util.*" pageEncoding="utf-8"
	isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
    String path = request.getContextPath();
			String basePath = request.getScheme() + "://"
					+ request.getServerName() + ":" + request.getServerPort()
					+ path + "/";
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css" />
<link href="<%=request.getContextPath()%>/css/select.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.idTabs.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/select-ui.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/editor/kindeditor.js"></script>

<script type="text/javascript">
    KE.show({
        id : 'content7',
        cssPath : './index.css'
    });
  </script>
  
<script type="text/javascript">
$(document).ready(function(e){
    $(".select1").uedSelect({
		width : 345			  
	});
	$(".select2").uedSelect({
		width : 167  
	});
	$(".select3").uedSelect({
		width : 100
	});
});
</script>
<style type="text/css">
	label{
		font-size:13;
	}
</style>
</head>

<body>

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><e>首页</e></li>
    <li><e>用户管理</e></li>
    <li><e>用户详情</e></li>
    </ul>
    </div>
    
    <div class="formbody">
    
    
    <div id="usual1" class="usual"> 
    
    <div class="itab">
  	<ul> 
    <li><a href="#tab1" class="selected" style="font-size:15">用户详细信息</a></li> 
    
  	</ul>
    </div> 
    
  	<div id="tab1" class="tabson">
    <c:forEach items="${lists}" var="data">
    <ul class="forminfo">
    <li><label>ID</label><input name="userid" type="text" class="dfinput"  readonly ="readonly" value="${data.id}" style="font-size:13"/></li>
    <li><label>头像</label><img src="${data.photo}" height="60px" width="60px"/><strong id="job1"></strong></li>
    <li><label>昵称</label><input name="username" type="text" class="dfinput"  readonly ="readonly" value="${data.username}" style="font-size:13"/></li>
    <li><label>手机号</label><input name="background" type="text" class="dfinput"  readonly ="readonly" value="${data.mobile}" style="font-size:13"/></li>
    <li><label>性别</label>
    	<c:if test="${data.gender == 0}"><input name="jobYears" type="text" class="dfinput" readonly ="readonly" value="未知"/></c:if>
		<c:if test="${data.gender == 1}"><input name="jobYears" type="text" class="dfinput" readonly ="readonly" value="男"/></c:if>
		<c:if test="${data.gender == 2}"><input name="jobYears" type="text" class="dfinput" readonly ="readonly" value="女"/></c:if>
    </li>
    <li><label>姓名</label><input name="background" type="text" class="dfinput"  readonly ="readonly" value="${data.real_name}" style="font-size:13"/></li>
    <li><label>年龄</label><input name="background" type="text" class="dfinput"  readonly ="readonly" value="${data.age}" style="font-size:13"/></li>
    <li><label>身高</label><input name="background" type="text" class="dfinput"  readonly ="readonly" value="${data.stature}" style="font-size:13"/></li>
    <li><label>体重</label><input name="background" type="text" class="dfinput"  readonly ="readonly" value="${data.weight}" style="font-size:13"/></li>
    <li><label>地址</label><input name="background" type="text" class="dfinput"  readonly ="readonly" value="${data.address}" style="font-size:13"/></li>
    <li><label>等级</label><input name="background" type="text" class="dfinput"  readonly ="readonly" value="${data.integral_rank}" style="font-size:13"/></li>
    <li><label>微信号</label><input name="background" type="text" class="dfinput"  readonly ="readonly" value="${data.wx_name}" style="font-size:13"/></li>
    <li><label>职称</label><input name="background" type="text" class="dfinput"  readonly ="readonly" value="${data.job}" style="font-size:13"/></li>
    <li><label>支付宝</label><input name="background" type="text" class="dfinput"  readonly ="readonly" value="${data.zfb_account}" style="font-size:13"/></li>
    <li><label>银行卡</label><input name="background" type="text" class="dfinput"  readonly ="readonly" value="${data.bank}" style="font-size:13"/></li>
    <li><label>会员开始时间</label><input name="background" type="text" class="dfinput"  readonly ="readonly" value="${data.vip_start}" style="font-size:13"/></li>
    <li><label>会员结束时间</label><input name="background" type="text" class="dfinput"  readonly ="readonly" value="${data.vip_end}" style="font-size:13"/></li>
    <li><label>会员</label>
    	<c:if test="${data.vip == 1}"><input name="jobYears" type="text" class="dfinput" readonly ="readonly" value="VIP"/></c:if>
		<c:if test="${data.vip == 0}"><input name="jobYears" type="text" class="dfinput" readonly ="readonly" value="普通用户"/></c:if>
    <li>
    <li><label>实名认证</label>
    	<c:if test="${data.identity_audit == 1}"><input name="jobYears" type="text" class="dfinput" readonly ="readonly" value="已认证"/></c:if>
		<c:if test="${data.identity_audit == 0}"><input name="jobYears" type="text" class="dfinput" readonly ="readonly" value="未认证"/></c:if>
    <li>
    <li><label>企业认证</label>
    	<c:if test="${data.enterprise_audit == 1}"><input name="jobYears" type="text" class="dfinput" readonly ="readonly" value="已认证"/></c:if>
		<c:if test="${data.enterprise_audit == 0}"><input name="jobYears" type="text" class="dfinput" readonly ="readonly" value="未认证"/></c:if>
    </li>
     <li><label>身份证号</label><input name="background" type="text" class="dfinput"  readonly ="readonly" value="${data.identity_card}" style="font-size:13"/></li>
	<li><label>身份证正面</label><img src="${data.identity_front}" height="180px" width="300px"/><strong id="job1"></strong></li>
   	<li><label>身份证反面</label><img src="${data.identity_side}" height="180px" width="300px"/><strong id="job1"></strong></li>
    <li><label>注册时间</label><input name="background" type="text" class="dfinput"  readonly ="readonly" value="${data.create_time}" style="font-size:13"/></li>
    <li><label>最近登录时间</label><input name="background" type="text" class="dfinput"  readonly ="readonly" value="${data.login_time}" style="font-size:13"/></li>
    <li><label>推荐人手机号</label><input name="background" type="text" class="dfinput"  readonly ="readonly" value="${data.recommend_mobile}" style="font-size:13"/></li>
    	<c:if test="${data.is_ban == 1}">
		    <div class="tipbtn">
				<input name="" type="button" class="sure" value="封号"/>&nbsp;<input name="quxiao" type="button" class="cancel" value="取消" />
			</div>
    	</c:if>
    	<c:if test="${data.is_ban == 0}">
		    <div class="tipbtn">
				<input name="" type="button" class="sure" value="解封"/>&nbsp;<input name="quxiao" type="button" class="cancel" value="取消" />
			</div>
    	</c:if>
    </ul>
    </c:forEach>
    </div> 
  </div>
  <script type="text/javascript">
	var flag = true,//状态true为正常的状态,false为放大的状态
    imgH,//图片的高度
    imgW,//图片的宽度
    img = document.getElementsByTagName('img')[1];//图片元素
img.onclick =  function(){
//图片点击事件
imgH = img.height; //获取图片的高度
imgW = img.width; //获取图片的宽度
if(flag){
    //图片为正常状态,设置图片宽高为现在宽高的2倍
    flag = false;//把状态设为放大状态
    img.height = imgH*4.5;
    img.width = imgW*4.5;
}else{
    //图片为放大状态,设置图片宽高为现在宽高的二分之一
    flag = true;//把状态设为正常状态
    img.height = imgH/4.5;
    img.width = imgW/4.5;
}

}
	
var flag1 = true,//状态true为正常的状态,false为放大的状态
img1H,//图片的高度
img1W,//图片的宽度
img1 = document.getElementsByTagName('img')[2];//图片元素
img1.onclick =  function(){
//图片点击事件
img1H = img1.height; //获取图片的高度
img1W = img1.width; //获取图片的宽度
if(flag1){
//图片为正常状态,设置图片宽高为现在宽高的2倍
flag1 = false;//把状态设为放大状态
img1.height = img1H*4.5;
img1.width = img1W*4.5;
}else{
//图片为放大状态,设置图片宽高为现在宽高的二分之一
flag1 = true;//把状态设为正常状态
img1.height = img1H/4.5;
img1.width = img1W/4.5;
}

}

  		$(".sure").click(function(){
  			var text = $(this).val();
			var statu = "";
			if(text == "封号"){
				statu = "0";
			}else if(text == "解封"){
				statu = "1";
			}
			var flag = confirm("请确认操作!");
			if(flag){
				var username = $("input[name=username]").val()
				var params = $("input[name=userid]").val() + "," + statu + "," + username;
		      	window.location.href="/htx-backer/updateUserStatu?params="+params;
			}
  		})
  
		$(".cancel").click(function(){
			if('${entuserid}'!=null&&'${entuserid}'!=''){
				window.location.href="<%=request.getContextPath()%>/selectUserCompanyList?userid=${entuserid}";
			}
			else if ('${oneuserid}'!=null&&'${oneuserid}'!=''){
				window.location.href="<%=request.getContextPath()%>/selectOneUserList?userid=${oneuserid}";
			}else{
				
			window.location.href="/htx-backer/selectUserList";
			}
		})
  </script>
</body>
</html>
